[wntime@master-185 nuts-almond]$ bash -x nuts-cli.sh
+ shopt -s expand_aliases
++ cd nuts-cli.sh
nuts-cli.sh: line 18: cd: nuts-cli.sh: Not a directory
+ declare -g __NUTS_ALMOND_PATH=
+ declare -g __NUTS_ALMOND_LIB=/lib
+ declare -g __NUTS_ALMOND_TASK=/task
+ declare -g __NUTS_ALMOND_TEMP=/.temporary
+ declare -g '__NUTS_ALMOND_STDOUT=NUTS_:> '
+ declare -g 'NUTS_ALMOND_VERSION=Nuts-Almond V0.0.1'
+ declare -g NUTS_ALMOND_LOG_LEVEL=info
+ [[ ! -e /.temporary ]]
+ mkdir -p /.temporary
mkdir: cannot create directory ‘/.temporary’: Permission denied
+ alias logger::logging=system::logger::logging
+ alias 'logger::debug=system::logger::logging debug'
+ alias 'logger::info=system::logger::logging info '
+ alias 'logger::warn=system::logger::logging warn'
+ alias 'logger::error=system::logger::logging error'
+ alias 'logger::fatal=system::logger::logging fatal'
+ NUTS_ALMOND_LOG_LEVEL=warn
+ system::logger::logging info global::process 'initialize system...'
+ local level=info
+ local functionName=global::process
+ local 'message=initialize system...'
+ local 'color_stdout=\033[32mNUTS_:> \033[0m'
++ echo '[info] '
++ tr a-z A-Z
+ local 'message_level=[INFO] '
+ shift 2
+ message='initialize system...'
++ date +%X
+ local 'message_base=[04:22:13 PM] [INFO]  - nuts-cli.sh -> global::process : initialize system...'
+ local 'message_debug=\033[32mNUTS_:> \033[0m\033[34m[04:22:13 PM] [INFO]  - nuts-cli.sh -> global::process : initialize system...\033[0m'
+ local 'message_info=\033[32mNUTS_:> \033[0m[04:22:13 PM] [INFO]  - nuts-cli.sh -> global::process : initialize system...'
+ local 'message_warn=\033[32mNUTS_:> \033[0m\033[33m[04:22:13 PM] [INFO]  - nuts-cli.sh -> global::process : initialize system...\033[0m'
+ local 'message_error=\033[32mNUTS_:> \033[0m\033[31m[04:22:13 PM] [INFO]  - nuts-cli.sh -> global::process : initialize system...\033[0m'
+ local 'message_fatal=\033[32mNUTS_:> \033[0m\033[35m[04:22:13 PM] [INFO]  - nuts-cli.sh -> global::process : initialize system...\033[0m'
+ declare format=
+ case ${level} in
++ system::logger::getLevel info
++ local level=info
++ local 'logLevels=debug info warn error fatal'
++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
++ [[ warn == info ]]
++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
++ [[ error == info ]]
++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
++ [[ fatal == info ]]
++ echo ''
+ [[ -n '' ]]
+ shift 2
+ [[ -n '' ]]
+ system::import lib/arrayList
+ : lib/arrayList
+ local libPath
+ for libPath in '"$@"'
+ system::logger::logging info system::import 开始import外部shell文件：lib/arrayList
+ local level=info
+ local functionName=system::import
+ local message=开始import外部shell文件：lib/arrayList
+ local 'color_stdout=\033[32mNUTS_:> \033[0m'
++ echo '[info] '
++ tr a-z A-Z
+ local 'message_level=[INFO] '
+ shift 2
+ message=开始import外部shell文件：lib/arrayList
++ date +%X
+ local 'message_base=[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::import : 开始import外部shell文件：lib/arrayList'
+ local 'message_debug=\033[32mNUTS_:> \033[0m\033[34m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::import : 开始import外部shell文件：lib/arrayList\033[0m'
+ local 'message_info=\033[32mNUTS_:> \033[0m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::import : 开始import外部shell文件：lib/arrayList'
+ local 'message_warn=\033[32mNUTS_:> \033[0m\033[33m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::import : 开始import外部shell文件：lib/arrayList\033[0m'
+ local 'message_error=\033[32mNUTS_:> \033[0m\033[31m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::import : 开始import外部shell文件：lib/arrayList\033[0m'
+ local 'message_fatal=\033[32mNUTS_:> \033[0m\033[35m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::import : 开始import外部shell文件：lib/arrayList\033[0m'
+ declare format=
+ case ${level} in
++ system::logger::getLevel info
++ local level=info
++ local 'logLevels=debug info warn error fatal'
++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
++ [[ warn == info ]]
++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
++ [[ error == info ]]
++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
++ [[ fatal == info ]]
++ echo ''
+ [[ -n '' ]]
+ shift 2
+ [[ -n '' ]]
+ system::importOne lib/arrayList
+ local libPath=lib/arrayList
+ shift
+ system::logger::logging info system::importOne 开始import外部shell文件：lib/arrayList
+ local level=info
+ local functionName=system::importOne
+ local message=开始import外部shell文件：lib/arrayList
+ local 'color_stdout=\033[32mNUTS_:> \033[0m'
++ echo '[info] '
++ tr a-z A-Z
+ local 'message_level=[INFO] '
+ shift 2
+ message=开始import外部shell文件：lib/arrayList
++ date +%X
+ local 'message_base=[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::importOne : 开始import外部shell文件：lib/arrayList'
+ local 'message_debug=\033[32mNUTS_:> \033[0m\033[34m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::importOne : 开始import外部shell文件：lib/arrayList\033[0m'
+ local 'message_info=\033[32mNUTS_:> \033[0m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::importOne : 开始import外部shell文件：lib/arrayList'
+ local 'message_warn=\033[32mNUTS_:> \033[0m\033[33m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::importOne : 开始import外部shell文件：lib/arrayList\033[0m'
+ local 'message_error=\033[32mNUTS_:> \033[0m\033[31m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::importOne : 开始import外部shell文件：lib/arrayList\033[0m'
+ local 'message_fatal=\033[32mNUTS_:> \033[0m\033[35m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::importOne : 开始import外部shell文件：lib/arrayList\033[0m'
+ declare format=
+ case ${level} in
++ system::logger::getLevel info
++ local level=info
++ local 'logLevels=debug info warn error fatal'
++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
++ [[ warn == info ]]
++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
++ [[ error == info ]]
++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
++ [[ fatal == info ]]
++ echo ''
+ [[ -n '' ]]
+ shift 2
+ [[ -n '' ]]
+ system::sourceFile lib/arrayList
+ local libPath=lib/arrayList
+ shift
+ system::logger::logging debug system::sourceFile 检查是否存在外部shell文件：lib/arrayList
+ local level=debug
+ local functionName=system::sourceFile
+ local message=检查是否存在外部shell文件：lib/arrayList
+ local 'color_stdout=\033[32mNUTS_:> \033[0m'
++ echo '[debug] '
++ tr a-z A-Z
+ local 'message_level=[DEBUG] '
+ shift 2
+ message=检查是否存在外部shell文件：lib/arrayList
++ date +%X
+ local 'message_base=[04:22:13 PM] [DEBUG] - nuts-cli.sh -> system::sourceFile : 检查是否存在外部shell文件：lib/arrayList'
+ local 'message_debug=\033[32mNUTS_:> \033[0m\033[34m[04:22:13 PM] [DEBUG] - nuts-cli.sh -> system::sourceFile : 检查是否存在外部shell文件：lib/arrayList\033[0m'
+ local 'message_info=\033[32mNUTS_:> \033[0m[04:22:13 PM] [DEBUG] - nuts-cli.sh -> system::sourceFile : 检查是否存在外部shell文件：lib/arrayList'
+ local 'message_warn=\033[32mNUTS_:> \033[0m\033[33m[04:22:13 PM] [DEBUG] - nuts-cli.sh -> system::sourceFile : 检查是否存在外部shell文件：lib/arrayList\033[0m'
+ local 'message_error=\033[32mNUTS_:> \033[0m\033[31m[04:22:13 PM] [DEBUG] - nuts-cli.sh -> system::sourceFile : 检查是否存在外部shell文件：lib/arrayList\033[0m'
+ local 'message_fatal=\033[32mNUTS_:> \033[0m\033[35m[04:22:13 PM] [DEBUG] - nuts-cli.sh -> system::sourceFile : 检查是否存在外部shell文件：lib/arrayList\033[0m'
+ declare format=
+ case ${level} in
++ system::logger::getLevel debug
++ local level=debug
++ local 'logLevels=debug info warn error fatal'
++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
++ [[ warn == debug ]]
++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
++ [[ error == debug ]]
++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
++ [[ fatal == debug ]]
++ echo ''
+ [[ -n '' ]]
+ shift 2
+ [[ -n '' ]]
+ [[ ! -f lib/arrayList ]]
+ [[ ! -f lib/arrayList.sh ]]
++ system::getAbsolutePath lib/arrayList
++ local filePath=lib/arrayList
++ [[ lib/arrayList == \/* ]]
++++ dirname lib/arrayList
+++ cd lib
+++ pwd
+++ basename lib/arrayList
++ echo /home/wntime/WorkSpace.Temp/nuts-almond/lib/arrayList
+ libPath=/home/wntime/WorkSpace.Temp/nuts-almond/lib/arrayList
+ [[ ! -f /home/wntime/WorkSpace.Temp/nuts-almond/lib/arrayList ]]
++ system::getAbsolutePath /home/wntime/WorkSpace.Temp/nuts-almond/lib/arrayList.sh
++ local filePath=/home/wntime/WorkSpace.Temp/nuts-almond/lib/arrayList.sh
++ [[ /home/wntime/WorkSpace.Temp/nuts-almond/lib/arrayList.sh == \/* ]]
++ echo /home/wntime/WorkSpace.Temp/nuts-almond/lib/arrayList.sh
+ libPath=/home/wntime/WorkSpace.Temp/nuts-almond/lib/arrayList.sh
+ [[ -f /home/wntime/WorkSpace.Temp/nuts-almond/lib/arrayList.sh ]]
+ [[ -z /home/wntime/WorkSpace.Temp/nuts-almond/lib/arrayList.sh ]]
+ system::logger::logging info system::sourceFile 开始Source外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/lib/arrayList.sh
+ local level=info
+ local functionName=system::sourceFile
+ local message=开始Source外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/lib/arrayList.sh
+ local 'color_stdout=\033[32mNUTS_:> \033[0m'
++ echo '[info] '
++ tr a-z A-Z
+ local 'message_level=[INFO] '
+ shift 2
+ message=开始Source外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/lib/arrayList.sh
++ date +%X
+ local 'message_base=[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::sourceFile : 开始Source外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/lib/arrayList.sh'
+ local 'message_debug=\033[32mNUTS_:> \033[0m\033[34m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::sourceFile : 开始Source外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/lib/arrayList.sh\033[0m'
+ local 'message_info=\033[32mNUTS_:> \033[0m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::sourceFile : 开始Source外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/lib/arrayList.sh'
+ local 'message_warn=\033[32mNUTS_:> \033[0m\033[33m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::sourceFile : 开始Source外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/lib/arrayList.sh\033[0m'
+ local 'message_error=\033[32mNUTS_:> \033[0m\033[31m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::sourceFile : 开始Source外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/lib/arrayList.sh\033[0m'
+ local 'message_fatal=\033[32mNUTS_:> \033[0m\033[35m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::sourceFile : 开始Source外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/lib/arrayList.sh\033[0m'
+ declare format=
+ case ${level} in
++ system::logger::getLevel info
++ local level=info
++ local 'logLevels=debug info warn error fatal'
++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
++ [[ warn == info ]]
++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
++ [[ error == info ]]
++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
++ [[ fatal == info ]]
++ echo ''
+ [[ -n '' ]]
+ shift 2
+ [[ -n '' ]]
+ system::wrapSource /home/wntime/WorkSpace.Temp/nuts-almond/lib/arrayList.sh
+ local libPath=/home/wntime/WorkSpace.Temp/nuts-almond/lib/arrayList.sh
+ shift
+ system::logger::logging info system::wrapSource 开始wrap外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/lib/arrayList.sh
+ local level=info
+ local functionName=system::wrapSource
+ local message=开始wrap外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/lib/arrayList.sh
+ local 'color_stdout=\033[32mNUTS_:> \033[0m'
++ echo '[info] '
++ tr a-z A-Z
+ local 'message_level=[INFO] '
+ shift 2
+ message=开始wrap外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/lib/arrayList.sh
++ date +%X
+ local 'message_base=[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::wrapSource : 开始wrap外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/lib/arrayList.sh'
+ local 'message_debug=\033[32mNUTS_:> \033[0m\033[34m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::wrapSource : 开始wrap外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/lib/arrayList.sh\033[0m'
+ local 'message_info=\033[32mNUTS_:> \033[0m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::wrapSource : 开始wrap外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/lib/arrayList.sh'
+ local 'message_warn=\033[32mNUTS_:> \033[0m\033[33m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::wrapSource : 开始wrap外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/lib/arrayList.sh\033[0m'
+ local 'message_error=\033[32mNUTS_:> \033[0m\033[31m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::wrapSource : 开始wrap外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/lib/arrayList.sh\033[0m'
+ local 'message_fatal=\033[32mNUTS_:> \033[0m\033[35m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::wrapSource : 开始wrap外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/lib/arrayList.sh\033[0m'
+ declare format=
+ case ${level} in
++ system::logger::getLevel info
++ local level=info
++ local 'logLevels=debug info warn error fatal'
++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
++ [[ warn == info ]]
++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
++ [[ error == info ]]
++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
++ [[ fatal == info ]]
++ echo ''
+ [[ -n '' ]]
+ shift 2
+ [[ -n '' ]]
+ builtin source /home/wntime/WorkSpace.Temp/nuts-almond/lib/arrayList.sh
+ system::import test/array-test
+ : test/array-test
+ local libPath
+ for libPath in '"$@"'
+ system::logger::logging info system::import 开始import外部shell文件：test/array-test
+ local level=info
+ local functionName=system::import
+ local message=开始import外部shell文件：test/array-test
+ local 'color_stdout=\033[32mNUTS_:> \033[0m'
++ echo '[info] '
++ tr a-z A-Z
+ local 'message_level=[INFO] '
+ shift 2
+ message=开始import外部shell文件：test/array-test
++ date +%X
+ local 'message_base=[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::import : 开始import外部shell文件：test/array-test'
+ local 'message_debug=\033[32mNUTS_:> \033[0m\033[34m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::import : 开始import外部shell文件：test/array-test\033[0m'
+ local 'message_info=\033[32mNUTS_:> \033[0m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::import : 开始import外部shell文件：test/array-test'
+ local 'message_warn=\033[32mNUTS_:> \033[0m\033[33m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::import : 开始import外部shell文件：test/array-test\033[0m'
+ local 'message_error=\033[32mNUTS_:> \033[0m\033[31m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::import : 开始import外部shell文件：test/array-test\033[0m'
+ local 'message_fatal=\033[32mNUTS_:> \033[0m\033[35m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::import : 开始import外部shell文件：test/array-test\033[0m'
+ declare format=
+ case ${level} in
++ system::logger::getLevel info
++ local level=info
++ local 'logLevels=debug info warn error fatal'
++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
++ [[ warn == info ]]
++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
++ [[ error == info ]]
++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
++ [[ fatal == info ]]
++ echo ''
+ [[ -n '' ]]
+ shift 2
+ [[ -n '' ]]
+ system::importOne test/array-test
+ local libPath=test/array-test
+ shift
+ system::logger::logging info system::importOne 开始import外部shell文件：test/array-test
+ local level=info
+ local functionName=system::importOne
+ local message=开始import外部shell文件：test/array-test
+ local 'color_stdout=\033[32mNUTS_:> \033[0m'
++ echo '[info] '
++ tr a-z A-Z
+ local 'message_level=[INFO] '
+ shift 2
+ message=开始import外部shell文件：test/array-test
++ date +%X
+ local 'message_base=[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::importOne : 开始import外部shell文件：test/array-test'
+ local 'message_debug=\033[32mNUTS_:> \033[0m\033[34m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::importOne : 开始import外部shell文件：test/array-test\033[0m'
+ local 'message_info=\033[32mNUTS_:> \033[0m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::importOne : 开始import外部shell文件：test/array-test'
+ local 'message_warn=\033[32mNUTS_:> \033[0m\033[33m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::importOne : 开始import外部shell文件：test/array-test\033[0m'
+ local 'message_error=\033[32mNUTS_:> \033[0m\033[31m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::importOne : 开始import外部shell文件：test/array-test\033[0m'
+ local 'message_fatal=\033[32mNUTS_:> \033[0m\033[35m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::importOne : 开始import外部shell文件：test/array-test\033[0m'
+ declare format=
+ case ${level} in
++ system::logger::getLevel info
++ local level=info
++ local 'logLevels=debug info warn error fatal'
++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
++ [[ warn == info ]]
++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
++ [[ error == info ]]
++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
++ [[ fatal == info ]]
++ echo ''
+ [[ -n '' ]]
+ shift 2
+ [[ -n '' ]]
+ system::sourceFile test/array-test
+ local libPath=test/array-test
+ shift
+ system::logger::logging debug system::sourceFile 检查是否存在外部shell文件：test/array-test
+ local level=debug
+ local functionName=system::sourceFile
+ local message=检查是否存在外部shell文件：test/array-test
+ local 'color_stdout=\033[32mNUTS_:> \033[0m'
++ echo '[debug] '
++ tr a-z A-Z
+ local 'message_level=[DEBUG] '
+ shift 2
+ message=检查是否存在外部shell文件：test/array-test
++ date +%X
+ local 'message_base=[04:22:13 PM] [DEBUG] - nuts-cli.sh -> system::sourceFile : 检查是否存在外部shell文件：test/array-test'
+ local 'message_debug=\033[32mNUTS_:> \033[0m\033[34m[04:22:13 PM] [DEBUG] - nuts-cli.sh -> system::sourceFile : 检查是否存在外部shell文件：test/array-test\033[0m'
+ local 'message_info=\033[32mNUTS_:> \033[0m[04:22:13 PM] [DEBUG] - nuts-cli.sh -> system::sourceFile : 检查是否存在外部shell文件：test/array-test'
+ local 'message_warn=\033[32mNUTS_:> \033[0m\033[33m[04:22:13 PM] [DEBUG] - nuts-cli.sh -> system::sourceFile : 检查是否存在外部shell文件：test/array-test\033[0m'
+ local 'message_error=\033[32mNUTS_:> \033[0m\033[31m[04:22:13 PM] [DEBUG] - nuts-cli.sh -> system::sourceFile : 检查是否存在外部shell文件：test/array-test\033[0m'
+ local 'message_fatal=\033[32mNUTS_:> \033[0m\033[35m[04:22:13 PM] [DEBUG] - nuts-cli.sh -> system::sourceFile : 检查是否存在外部shell文件：test/array-test\033[0m'
+ declare format=
+ case ${level} in
++ system::logger::getLevel debug
++ local level=debug
++ local 'logLevels=debug info warn error fatal'
++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
++ [[ warn == debug ]]
++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
++ [[ error == debug ]]
++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
++ [[ fatal == debug ]]
++ echo ''
+ [[ -n '' ]]
+ shift 2
+ [[ -n '' ]]
+ [[ ! -f test/array-test ]]
+ [[ ! -f test/array-test.sh ]]
++ system::getAbsolutePath test/array-test
++ local filePath=test/array-test
++ [[ test/array-test == \/* ]]
++++ dirname test/array-test
+++ cd test
+++ pwd
+++ basename test/array-test
++ echo /home/wntime/WorkSpace.Temp/nuts-almond/test/array-test
+ libPath=/home/wntime/WorkSpace.Temp/nuts-almond/test/array-test
+ [[ ! -f /home/wntime/WorkSpace.Temp/nuts-almond/test/array-test ]]
++ system::getAbsolutePath /home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh
++ local filePath=/home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh
++ [[ /home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh == \/* ]]
++ echo /home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh
+ libPath=/home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh
+ [[ -f /home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh ]]
+ [[ -z /home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh ]]
+ system::logger::logging info system::sourceFile 开始Source外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh
+ local level=info
+ local functionName=system::sourceFile
+ local message=开始Source外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh
+ local 'color_stdout=\033[32mNUTS_:> \033[0m'
++ echo '[info] '
++ tr a-z A-Z
+ local 'message_level=[INFO] '
+ shift 2
+ message=开始Source外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh
++ date +%X
+ local 'message_base=[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::sourceFile : 开始Source外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh'
+ local 'message_debug=\033[32mNUTS_:> \033[0m\033[34m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::sourceFile : 开始Source外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh\033[0m'
+ local 'message_info=\033[32mNUTS_:> \033[0m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::sourceFile : 开始Source外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh'
+ local 'message_warn=\033[32mNUTS_:> \033[0m\033[33m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::sourceFile : 开始Source外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh\033[0m'
+ local 'message_error=\033[32mNUTS_:> \033[0m\033[31m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::sourceFile : 开始Source外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh\033[0m'
+ local 'message_fatal=\033[32mNUTS_:> \033[0m\033[35m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::sourceFile : 开始Source外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh\033[0m'
+ declare format=
+ case ${level} in
++ system::logger::getLevel info
++ local level=info
++ local 'logLevels=debug info warn error fatal'
++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
++ [[ warn == info ]]
++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
++ [[ error == info ]]
++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
++ [[ fatal == info ]]
++ echo ''
+ [[ -n '' ]]
+ shift 2
+ [[ -n '' ]]
+ system::wrapSource /home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh
+ local libPath=/home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh
+ shift
+ system::logger::logging info system::wrapSource 开始wrap外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh
+ local level=info
+ local functionName=system::wrapSource
+ local message=开始wrap外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh
+ local 'color_stdout=\033[32mNUTS_:> \033[0m'
++ echo '[info] '
++ tr a-z A-Z
+ local 'message_level=[INFO] '
+ shift 2
+ message=开始wrap外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh
++ date +%X
+ local 'message_base=[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::wrapSource : 开始wrap外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh'
+ local 'message_debug=\033[32mNUTS_:> \033[0m\033[34m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::wrapSource : 开始wrap外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh\033[0m'
+ local 'message_info=\033[32mNUTS_:> \033[0m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::wrapSource : 开始wrap外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh'
+ local 'message_warn=\033[32mNUTS_:> \033[0m\033[33m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::wrapSource : 开始wrap外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh\033[0m'
+ local 'message_error=\033[32mNUTS_:> \033[0m\033[31m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::wrapSource : 开始wrap外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh\033[0m'
+ local 'message_fatal=\033[32mNUTS_:> \033[0m\033[35m[04:22:13 PM] [INFO]  - nuts-cli.sh -> system::wrapSource : 开始wrap外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh\033[0m'
+ declare format=
+ case ${level} in
++ system::logger::getLevel info
++ local level=info
++ local 'logLevels=debug info warn error fatal'
++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
++ [[ warn == info ]]
++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
++ [[ error == info ]]
++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
++ [[ fatal == info ]]
++ echo ''
+ [[ -n '' ]]
+ shift 2
+ [[ -n '' ]]
+ builtin source /home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh
++ system::arrayList testArray
++ local arrayName=testArray
+++ system::filterVariableChar testArray
+++ local varName=testArray
+++ echo testArray
+++ sed 's/[A-Za-z]//g'
+++ sed 's/[0-9]//g'
+++ sed s/_//g
++ [[ -n '' ]]
++ arrayTemplates=()
++ local arrayTemplates
++ arrayTemplates=("${arrayTemplates[@]}" '
        function @array:size() {
            if test ${#} -eq 0; then
                echo "${#@array[@]}"
            else
                test ${#@array[@]} ${@}
            fi
        }')
++ arrayTemplates=("${arrayTemplates[@]}" '
        function @array:select() {
            local element=${1:?"[${FUNCNAME}] 需要匹配模式参数！\$1:element 匹配模式参数" }

            for i in ${!@array[@]}; do
                [[ ${@array[i]} =~ ${element} ]] && echo "${@array[i]}"
            done
        }')
++ arrayTemplates=("${arrayTemplates[@]}" '
        function @array:add() {
            local element=${1:?"[${FUNCNAME}] 需要元素参数！\$1:element 元素参数" }

            while [[ ${#} -gt 0 ]]; do
                @array=(${@array[@]} "${element}")
                shift 1
            done
        }')
++ arrayTemplates=("${arrayTemplates[@]}" '
        function @array:remove() {
            local index=${1:?"[${FUNCNAME}] 需要删除元素的索引参数！\$1:index 索引参数" }

            unset @array[${index}]
        }')
++ arrayTemplates=("${arrayTemplates[@]}" '
        function @array:subArray() {
            local start=${1:?"[${FUNCNAME}] 需要起始索引位置参数！\$1:start 索引位置参数" }
            local length=${1:?"[${FUNCNAME}] 需要截取长度参数！\$1:length 截取长度参数" }

            echo "${@array[@]:${start}:${length}}"
        }')
++ arrayTemplates=("${arrayTemplates[@]}" '
        function @array:keys() {
            echo "${!@array[*]}"
        }')
++ arrayTemplates=("${arrayTemplates[@]}" '
        function @array:values() {
            echo "${@array[*]}"
        }')
++ system::logger::logging debug system::arrayList 开始构建ArrayList对象：testArray
++ local level=debug
++ local functionName=system::arrayList
++ local message=开始构建ArrayList对象：testArray
++ local 'color_stdout=\033[32mNUTS_:> \033[0m'
+++ echo '[debug] '
+++ tr a-z A-Z
++ local 'message_level=[DEBUG] '
++ shift 2
++ message=开始构建ArrayList对象：testArray
+++ date +%X
++ local 'message_base=[04:22:13 PM] [DEBUG] - nuts-cli.sh -> system::arrayList : 开始构建ArrayList对象：testArray'
++ local 'message_debug=\033[32mNUTS_:> \033[0m\033[34m[04:22:13 PM] [DEBUG] - nuts-cli.sh -> system::arrayList : 开始构建ArrayList对象：testArray\033[0m'
++ local 'message_info=\033[32mNUTS_:> \033[0m[04:22:13 PM] [DEBUG] - nuts-cli.sh -> system::arrayList : 开始构建ArrayList对象：testArray'
++ local 'message_warn=\033[32mNUTS_:> \033[0m\033[33m[04:22:13 PM] [DEBUG] - nuts-cli.sh -> system::arrayList : 开始构建ArrayList对象：testArray\033[0m'
++ local 'message_error=\033[32mNUTS_:> \033[0m\033[31m[04:22:13 PM] [DEBUG] - nuts-cli.sh -> system::arrayList : 开始构建ArrayList对象：testArray\033[0m'
++ local 'message_fatal=\033[32mNUTS_:> \033[0m\033[35m[04:22:13 PM] [DEBUG] - nuts-cli.sh -> system::arrayList : 开始构建ArrayList对象：testArray\033[0m'
++ declare format=
++ case ${level} in
+++ system::logger::getLevel debug
+++ local level=debug
+++ local 'logLevels=debug info warn error fatal'
+++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
+++ [[ warn == debug ]]
+++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
+++ [[ error == debug ]]
+++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
+++ [[ fatal == debug ]]
+++ echo ''
++ [[ -n '' ]]
++ shift 2
++ [[ -n '' ]]
++ eval 'testArray=()'
+++ testArray=()
++ for template in '${!arrayTemplates[@]}'
++ eval '
        function testArray:size() {
            if test ${#} -eq 0; then
                echo "${#testArray[@]}"
            else
                test ${#testArray[@]} ${@}
            fi
        }'
++ for template in '${!arrayTemplates[@]}'
++ eval '
        function testArray:select() {
            local element=${1:?"[${FUNCNAME}] 需要匹配模式参数！\$1:element 匹配模式参数" }

            for i in ${!testArray[@]}; do
                [[ ${testArray[i]} =~ ${element} ]] && echo "${testArray[i]}"
            done
        }'
++ for template in '${!arrayTemplates[@]}'
++ eval '
        function testArray:add() {
            local element=${1:?"[${FUNCNAME}] 需要元素参数！\$1:element 元素参数" }

            while [[ ${#} -gt 0 ]]; do
                testArray=(${testArray[@]} "${element}")
                shift 1
            done
        }'
++ for template in '${!arrayTemplates[@]}'
++ eval '
        function testArray:remove() {
            local index=${1:?"[${FUNCNAME}] 需要删除元素的索引参数！\$1:index 索引参数" }

            unset testArray[${index}]
        }'
++ for template in '${!arrayTemplates[@]}'
++ eval '
        function testArray:subArray() {
            local start=${1:?"[${FUNCNAME}] 需要起始索引位置参数！\$1:start 索引位置参数" }
            local length=${1:?"[${FUNCNAME}] 需要截取长度参数！\$1:length 截取长度参数" }

            echo "${testArray[@]:${start}:${length}}"
        }'
++ for template in '${!arrayTemplates[@]}'
++ eval '
        function testArray:keys() {
            echo "${!testArray[*]}"
        }'
++ for template in '${!arrayTemplates[@]}'
++ eval '
        function testArray:values() {
            echo "${testArray[*]}"
        }'
++ testArray:add 111
++ local element=111
++ [[ 1 -gt 0 ]]
++ testArray=(${testArray[@]} "${element}")
++ shift 1
++ [[ 0 -gt 0 ]]
++ testArray:add 222
++ local element=222
++ [[ 1 -gt 0 ]]
++ testArray=(${testArray[@]} "${element}")
++ shift 1
++ [[ 0 -gt 0 ]]
++ testArray:add 444
++ local element=444
++ [[ 1 -gt 0 ]]
++ testArray=(${testArray[@]} "${element}")
++ shift 1
++ [[ 0 -gt 0 ]]
++ testArray:add 333
++ local element=333
++ [[ 1 -gt 0 ]]
++ testArray=(${testArray[@]} "${element}")
++ shift 1
++ [[ 0 -gt 0 ]]
++ testArray:remove 2
++ local index=2
++ unset 'testArray[2]'
++ echo 'keys: 0 1 3'
keys: 0 1 3
++ echo 'values: 111 222 333'
values: 111 222 333
++ echo 'subArray: 222 333'
subArray: 222 333
+++ testArray:size
+++ test 0 -eq 0
+++ echo 3
++ system::logger::logging info testArray:size 3
++ local level=info
++ local functionName=testArray:size
++ local message=3
++ local 'color_stdout=\033[32mNUTS_:> \033[0m'
+++ echo '[info] '
+++ tr a-z A-Z
++ local 'message_level=[INFO] '
++ shift 2
++ message=3
+++ date +%X
++ local 'message_base=[04:22:13 PM] [INFO]  - nuts-cli.sh -> testArray:size : 3'
++ local 'message_debug=\033[32mNUTS_:> \033[0m\033[34m[04:22:13 PM] [INFO]  - nuts-cli.sh -> testArray:size : 3\033[0m'
++ local 'message_info=\033[32mNUTS_:> \033[0m[04:22:13 PM] [INFO]  - nuts-cli.sh -> testArray:size : 3'
++ local 'message_warn=\033[32mNUTS_:> \033[0m\033[33m[04:22:13 PM] [INFO]  - nuts-cli.sh -> testArray:size : 3\033[0m'
++ local 'message_error=\033[32mNUTS_:> \033[0m\033[31m[04:22:13 PM] [INFO]  - nuts-cli.sh -> testArray:size : 3\033[0m'
++ local 'message_fatal=\033[32mNUTS_:> \033[0m\033[35m[04:22:13 PM] [INFO]  - nuts-cli.sh -> testArray:size : 3\033[0m'
++ declare format=
++ case ${level} in
+++ system::logger::getLevel info
+++ local level=info
+++ local 'logLevels=debug info warn error fatal'
+++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
+++ [[ warn == info ]]
+++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
+++ [[ error == info ]]
+++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
+++ [[ fatal == info ]]
+++ echo ''
++ [[ -n '' ]]
++ shift 2
++ [[ -n '' ]]
+++ testArray:select 2
+++ local element=2
+++ for i in '${!testArray[@]}'
+++ [[ 111 =~ 2 ]]
+++ for i in '${!testArray[@]}'
+++ [[ 222 =~ 2 ]]
+++ echo 222
+++ for i in '${!testArray[@]}'
+++ [[ 333 =~ 2 ]]
++ system::logger::logging info testArray:select 222
++ local level=info
++ local functionName=testArray:select
++ local message=222
++ local 'color_stdout=\033[32mNUTS_:> \033[0m'
+++ echo '[info] '
+++ tr a-z A-Z
++ local 'message_level=[INFO] '
++ shift 2
++ message=222
+++ date +%X
++ local 'message_base=[04:22:13 PM] [INFO]  - nuts-cli.sh -> testArray:select : 222'
++ local 'message_debug=\033[32mNUTS_:> \033[0m\033[34m[04:22:13 PM] [INFO]  - nuts-cli.sh -> testArray:select : 222\033[0m'
++ local 'message_info=\033[32mNUTS_:> \033[0m[04:22:13 PM] [INFO]  - nuts-cli.sh -> testArray:select : 222'
++ local 'message_warn=\033[32mNUTS_:> \033[0m\033[33m[04:22:13 PM] [INFO]  - nuts-cli.sh -> testArray:select : 222\033[0m'
++ local 'message_error=\033[32mNUTS_:> \033[0m\033[31m[04:22:13 PM] [INFO]  - nuts-cli.sh -> testArray:select : 222\033[0m'
++ local 'message_fatal=\033[32mNUTS_:> \033[0m\033[35m[04:22:13 PM] [INFO]  - nuts-cli.sh -> testArray:select : 222\033[0m'
++ declare format=
++ case ${level} in
+++ system::logger::getLevel info
+++ local level=info
+++ local 'logLevels=debug info warn error fatal'
+++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
+++ [[ warn == info ]]
+++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
+++ [[ error == info ]]
+++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
+++ [[ fatal == info ]]
+++ echo ''
++ [[ -n '' ]]
++ shift 2
++ [[ -n '' ]]
+++ testArray:keys
+++ echo '0 1 3'
++ system::logger::logging info testArray:keys 0 1 3
++ local level=info
++ local functionName=testArray:keys
++ local message=0
++ local 'color_stdout=\033[32mNUTS_:> \033[0m'
+++ echo '[info] '
+++ tr a-z A-Z
++ local 'message_level=[INFO] '
++ shift 2
++ message='0 1 3'
+++ date +%X
++ local 'message_base=[04:22:13 PM] [INFO]  - nuts-cli.sh -> testArray:keys : 0 1 3'
++ local 'message_debug=\033[32mNUTS_:> \033[0m\033[34m[04:22:13 PM] [INFO]  - nuts-cli.sh -> testArray:keys : 0 1 3\033[0m'
++ local 'message_info=\033[32mNUTS_:> \033[0m[04:22:13 PM] [INFO]  - nuts-cli.sh -> testArray:keys : 0 1 3'
++ local 'message_warn=\033[32mNUTS_:> \033[0m\033[33m[04:22:13 PM] [INFO]  - nuts-cli.sh -> testArray:keys : 0 1 3\033[0m'
++ local 'message_error=\033[32mNUTS_:> \033[0m\033[31m[04:22:13 PM] [INFO]  - nuts-cli.sh -> testArray:keys : 0 1 3\033[0m'
++ local 'message_fatal=\033[32mNUTS_:> \033[0m\033[35m[04:22:13 PM] [INFO]  - nuts-cli.sh -> testArray:keys : 0 1 3\033[0m'
++ declare format=
++ case ${level} in
+++ system::logger::getLevel info
+++ local level=info
+++ local 'logLevels=debug info warn error fatal'
+++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
+++ [[ warn == info ]]
+++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
+++ [[ error == info ]]
+++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
+++ [[ fatal == info ]]
+++ echo ''
++ [[ -n '' ]]
++ shift 2
++ [[ -n '' ]]
+++ testArray:values
+++ echo '111 222 333'
++ system::logger::logging info testArray:values 111 222 333
++ local level=info
++ local functionName=testArray:values
++ local message=111
++ local 'color_stdout=\033[32mNUTS_:> \033[0m'
+++ echo '[info] '
+++ tr a-z A-Z
++ local 'message_level=[INFO] '
++ shift 2
++ message='111 222 333'
+++ date +%X
++ local 'message_base=[04:22:13 PM] [INFO]  - nuts-cli.sh -> testArray:values : 111 222 333'
++ local 'message_debug=\033[32mNUTS_:> \033[0m\033[34m[04:22:13 PM] [INFO]  - nuts-cli.sh -> testArray:values : 111 222 333\033[0m'
++ local 'message_info=\033[32mNUTS_:> \033[0m[04:22:13 PM] [INFO]  - nuts-cli.sh -> testArray:values : 111 222 333'
++ local 'message_warn=\033[32mNUTS_:> \033[0m\033[33m[04:22:13 PM] [INFO]  - nuts-cli.sh -> testArray:values : 111 222 333\033[0m'
++ local 'message_error=\033[32mNUTS_:> \033[0m\033[31m[04:22:13 PM] [INFO]  - nuts-cli.sh -> testArray:values : 111 222 333\033[0m'
++ local 'message_fatal=\033[32mNUTS_:> \033[0m\033[35m[04:22:13 PM] [INFO]  - nuts-cli.sh -> testArray:values : 111 222 333\033[0m'
++ declare format=
++ case ${level} in
+++ system::logger::getLevel info
+++ local level=info
+++ local 'logLevels=debug info warn error fatal'
+++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
+++ [[ warn == info ]]
+++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
+++ [[ error == info ]]
+++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
+++ [[ fatal == info ]]
+++ echo ''
++ [[ -n '' ]]
++ shift 2
++ [[ -n '' ]]
+++ testArray:subArray 1 2
+++ local start=1
+++ local length=1
+++ echo 222
++ system::logger::logging info testArray:subArray 222
++ local level=info
++ local functionName=testArray:subArray
++ local message=222
++ local 'color_stdout=\033[32mNUTS_:> \033[0m'
+++ echo '[info] '
+++ tr a-z A-Z
++ local 'message_level=[INFO] '
++ shift 2
++ message=222
+++ date +%X
++ local 'message_base=[04:22:13 PM] [INFO]  - nuts-cli.sh -> testArray:subArray : 222'
++ local 'message_debug=\033[32mNUTS_:> \033[0m\033[34m[04:22:13 PM] [INFO]  - nuts-cli.sh -> testArray:subArray : 222\033[0m'
++ local 'message_info=\033[32mNUTS_:> \033[0m[04:22:13 PM] [INFO]  - nuts-cli.sh -> testArray:subArray : 222'
++ local 'message_warn=\033[32mNUTS_:> \033[0m\033[33m[04:22:13 PM] [INFO]  - nuts-cli.sh -> testArray:subArray : 222\033[0m'
++ local 'message_error=\033[32mNUTS_:> \033[0m\033[31m[04:22:13 PM] [INFO]  - nuts-cli.sh -> testArray:subArray : 222\033[0m'
++ local 'message_fatal=\033[32mNUTS_:> \033[0m\033[35m[04:22:13 PM] [INFO]  - nuts-cli.sh -> testArray:subArray : 222\033[0m'
++ declare format=
++ case ${level} in
+++ system::logger::getLevel info
+++ local level=info
+++ local 'logLevels=debug info warn error fatal'
+++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
+++ [[ warn == info ]]
+++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
+++ [[ error == info ]]
+++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
+++ [[ fatal == info ]]
+++ echo ''
++ [[ -n '' ]]
++ shift 2
++ [[ -n '' ]]
+ system::logger::logging error system::wrapSource 不能wrap外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh
+ local level=error
+ local functionName=system::wrapSource
+ local message=不能wrap外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh
+ local 'color_stdout=\033[32mNUTS_:> \033[0m'
++ echo '[error] '
++ tr a-z A-Z
+ local 'message_level=[ERROR] '
+ shift 2
+ message=不能wrap外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh
++ date +%X
+ local 'message_base=[04:22:13 PM] [ERROR] - nuts-cli.sh -> system::wrapSource : 不能wrap外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh'
+ local 'message_debug=\033[32mNUTS_:> \033[0m\033[34m[04:22:13 PM] [ERROR] - nuts-cli.sh -> system::wrapSource : 不能wrap外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh\033[0m'
+ local 'message_info=\033[32mNUTS_:> \033[0m[04:22:13 PM] [ERROR] - nuts-cli.sh -> system::wrapSource : 不能wrap外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh'
+ local 'message_warn=\033[32mNUTS_:> \033[0m\033[33m[04:22:13 PM] [ERROR] - nuts-cli.sh -> system::wrapSource : 不能wrap外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh\033[0m'
+ local 'message_error=\033[32mNUTS_:> \033[0m\033[31m[04:22:13 PM] [ERROR] - nuts-cli.sh -> system::wrapSource : 不能wrap外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh\033[0m'
+ local 'message_fatal=\033[32mNUTS_:> \033[0m\033[35m[04:22:13 PM] [ERROR] - nuts-cli.sh -> system::wrapSource : 不能wrap外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh\033[0m'
+ declare format=
+ case ${level} in
++ system::logger::getLevel error
++ local level=error
++ local 'logLevels=debug info warn error fatal'
++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
++ [[ warn == error ]]
++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
++ [[ error == error ]]
++ echo error
++ for lvl in '$NUTS_ALMOND_LOG_LEVEL${logLevels##*$NUTS_ALMOND_LOG_LEVEL}'
++ [[ fatal == error ]]
++ echo ''
+ [[ -n error ]]
+ format='\033[32mNUTS_:> \033[0m\033[31m[04:22:13 PM] [ERROR] - nuts-cli.sh -> system::wrapSource : 不能wrap外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh\033[0m'
+ shift 2
+ [[ -n \033[32mNUTS_:> \033[0m\033[31m[04:22:13 PM] [ERROR] - nuts-cli.sh -> system::wrapSource : 不能wrap外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh\033[0m ]]
+ printf '\033[32mNUTS_:> \033[0m\033[31m[04:22:13 PM] [ERROR] - nuts-cli.sh -> system::wrapSource : 不能wrap外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh\033[0m\n' ''
NUTS_:> [04:22:13 PM] [ERROR] - nuts-cli.sh -> system::wrapSource : 不能wrap外部shell文件：/home/wntime/WorkSpace.Temp/nuts-almond/test/array-test.sh
